package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 时间片对象 time_slices
 *
 * @author ruoyi
 * @date 2022-02-12
 */
public class TimeSlices extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 时间片表id */
    private Long id;

    /** 时间片来源表(free_time表)id */
    @Excel(name = "时间片来源表(free_time表)id")
    private Integer freeTimeId;

    /** 预约日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date bookDate;

    /** 预约开始时间 */
    @Excel(name = "预约开始时间")
    private String startTime;

    /** 预约结束时间 */
    @Excel(name = "预约结束时间")
    private String endTime;

    /** 已预约人数 */
    @Excel(name = "已预约人数")
    private Integer numBooked;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setFreeTimeId(Integer freeTimeId)
    {
        this.freeTimeId = freeTimeId;
    }

    public Integer getFreeTimeId()
    {
        return freeTimeId;
    }
    public void setBookDate(Date bookDate)
    {
        this.bookDate = bookDate;
    }

    public Date getBookDate()
    {
        return bookDate;
    }
    public void setStartTime(String startTime)
    {
        this.startTime = startTime;
    }

    public String getStartTime()
    {
        return startTime;
    }
    public void setEndTime(String endTime)
    {
        this.endTime = endTime;
    }

    public String getEndTime()
    {
        return endTime;
    }
    public void setNumBooked(Integer numBooked)
    {
        this.numBooked = numBooked;
    }

    public Integer getNumBooked()
    {
        return numBooked;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("freeTimeId", getFreeTimeId())
                .append("bookDate", getBookDate())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .append("numBooked", getNumBooked())
                .toString();
    }
}
